const state = {
	loginToken:{
		"accessToken": "",
		"refreshToken": "",
		"expire": "",
		"refreshExpire": ""
	},
	account:{
		"id": "",
		"phone": "",
		"password": "",
		"name": "",
		"type": "",
		"sex": "",
		"communityName": "",
	}
}

const mutations = {
	setToken(state,params){
		state.loginToken = {
			...state.loginToken,
			...params
		}
	},
	clearToken(state){
		state.loginToken = {
			"accessToken": "",
			"refreshToken": "",
			"expire": "",
			"refreshExpire": ""
		}
	},
	setAccount(state,params){
		state.account = {
			...state.account,
			...params
		}
	},
	clearAccount(state){
		state.account = {
			"id": "",
			"phone": "",
			"password": "",
			"name": "",
			"type": ""
		}
	}
}

const actions = {

}

const getters = {

}

export default {
	namespaced: true,
	state,
	mutations,
	actions,
	getters
}